package com.service.screenReception.dto;

import lombok.Data;

@Data
public class LinkInfoDto {
    private String linkDn;
    private String linkName;
    private String aneDn;
    private String aneName;
    private String aneIp;
    //0 --- 未管理 1 --- 在线 2 --- 离线 3 --- 未知
    private Integer aneState;
    private String aPortDn;
    private String aPortName;
    private String aPortIp;
    //1 --- up 2 --- down 3 --- testing
    private Integer aPortAdminStatus;
    //1 --- up 2 --- down 3 --- testing 4 --- unknown 5 --- dormant 6 --- notPresent 7 --- lowerLayerDown
    private Integer aPortOperStatus;
    private String zneDn;
    private String zneName;
    private String zneIp;
    //0 --- 未管理 1 --- 在线 2 --- 离线 3 --- 未知
    private Integer zneState;
    private String zPortDn;
    private String zPortName;
    private String zPortIp;
    //1 --- up 2 --- down 3 --- testing
    private Integer zPortAdminStatus;
    //1 --- up 2 --- down 3 --- testing 4 --- unknown 5 --- dormant 6 --- notPresent 7 --- lowerLayerDown
    private Integer zPortoperstatus;
    //0 --- 正常 1 --- 未知 2 --- 重要故障 3 --- 紧急故障 4 --- 离线 5 --- 不管理
    private Integer linkStatus;
    //1 --- LLDP 2 --- Side-By-Side链路 3 --- MACARP 4 --- CDP 5 --- IP 6 --- 由物理链路生成Eth-Trunk链路 99 --- 手工
    private Integer linkType;
    //单位：Mbit/s
    private String speed;

    private TopoInfoDto aneDevice;
    private TopoInfoDto zneDevice;

    public LinkInfoDto(String aneDn, String aneName, String zneDn, String zneName) {
        this.aneDn = aneDn;
        this.aneName = aneName;
        this.zneDn = zneDn;
        this.zneName = zneName;
    }

    public LinkInfoDto() {
    }
}
